package com.csnf.mall.controllermvc;

import com.csnf.mall.entity.Category;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller()
@RequestMapping("/admin/category")
public class AdminCategoryController {

    @RequestMapping("/add")
    public String addCategory(Category category){
        System.out.printf(category.toString());
        return "redirect:/admin/getProducts";
    }
}
